package cn.demo.update;

import android.app.Application;

import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        initBugly();
    }

    /**
     * 初始化腾讯bugly
     */
    private void initBugly() {
        Beta.autoInit = true;
        Beta.autoCheckUpgrade = true;
        Beta.upgradeCheckPeriod = 0L;
        Beta.initDelay = 0L;

        Bugly.init(getApplicationContext(), "2bc4a90850", false);
    }
}
